package com.plugin.storage.storage.model;

import com.plugin.storage.base.SdkClient;
import com.plugin.storage.base.SdkContext;
import com.plugin.storage.storage.spi.VideoProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PlayVideoReq extends SdkClient {

    private static final Logger LOGGER = LoggerFactory.getLogger(PlayVideoReq.class);

    private String videoId;

    public String getVideoId() {
        return videoId;
    }

    public PlayVideoReq setVideoId(String videoId) {
        this.videoId = videoId;
        return this;
    }

    public UploadVideo auth() {
        VideoProvider videoProvider = getVideoProvider();
        SdkContext sdkContext = getContext();

        return videoProvider.playAuth(sdkContext, this);
    }

    public UploadVideo info() {
        VideoProvider videoProvider = getVideoProvider();
        SdkContext sdkContext = getContext();

        return videoProvider.playInfo(sdkContext, this);
    }
}
